package com.huawei.appgallery.forum.option.post.view;

import android.view.KeyEvent;
import android.view.View;
import android.view.View.OnKeyListener;
import android.widget.LinearLayout;

class RichTextEditor$2 implements OnKeyListener {
    final /* synthetic */ RichTextEditor ˋ;

    RichTextEditor$2(RichTextEditor richTextEditor) {
        this.ˋ = richTextEditor;
    }

    public boolean onKey(View view, int i, KeyEvent keyEvent) {
        if (keyEvent.getAction() == 0 && keyEvent.getKeyCode() == 67) {
            int indexOfChild = RichTextEditor.ˎ(this.ˋ).indexOfChild((LinearLayout) view.getParent());
            if (indexOfChild > 0) {
                RichTextEditor.ˎ(this.ˋ, indexOfChild - 1, false);
            }
        }
        return false;
    }
}
